home *** CD-ROM | disk | FTP | other *** search
/ Columbia Kermit / kermit.zip / newsgroups / misc.20010306-20010921 / 000240_fdc@watsun.cc.columbia.edu_Mon Jul 2 10:08:41 EDT 2001.msg < prev    next >
Text File  |  2020-01-01  |  4KB  |  80 lines

  1. Article: 12560 of comp.protocols.kermit.misc
  2. Path: newsmaster.cc.columbia.edu!watsun.cc.columbia.edu!fdc
  3. From: fdc@watsun.cc.columbia.edu (Frank da Cruz)
  4. Newsgroups: comp.protocols.kermit.misc
  5. Subject: Re: Building C-Kermit197 on Solaris 2.6
  6. Date: 2 Jul 2001 14:03:54 GMT
  7. Organization: Columbia University
  8. Lines: 63
  9. Message-ID: <9hpv0a$hn0$1@newsmaster.cc.columbia.edu>
  10. References: <GgAQ7AeH4WDL092yn@cinenet.net>
  11. NNTP-Posting-Host: watsun.cc.columbia.edu
  12. X-Trace: newsmaster.cc.columbia.edu 994082634 18144 128.59.39.2 (2 Jul 2001 14:03:54 GMT)
  13. X-Complaints-To: postmaster@columbia.edu
  14. NNTP-Posting-Date: 2 Jul 2001 14:03:54 GMT
  15. Xref: newsmaster.cc.columbia.edu comp.protocols.kermit.misc:12560
  16.  
  17. In article <GgAQ7AeH4WDL092yn@cinenet.net>,
  18. Dark Moon  <the.earth.below@cinenet.net> wrote:
  19. : ...with gcc 2.8.1 is not working for me.  I will be using this build 
  20. : strictly as a remote on my shell account, so I want only the interactive 
  21. : command parser, and the script and protocol engines.  Most of the rest 
  22. : can stay out, as I have a 5 Meg. hard quota.
  23. :
  24. You might consider sidestepping the problem by getting your system
  25. administrators to install the full Beta.
  26.  
  27. : My modified makefile entry:
  28. Obviously, not every combination of feature-selection options has been
  29. tested; custom builds will need some fine tuning.  If all you want is to
  30. save space, try building with Sun cc if you have it; this cuts the
  31. size about in half -- for some reason gcc generates huge executables on
  32. Solaris.  For example on Solaris 8 Sparc:
  33.  
  34.   -rwxrwxr-x  1 fdc  2322348 Jun 29 14:17 cku200b02.solaris8-sparc  <-- cc
  35.   -rwxrwxr-x  1 fdc  4193256 Jun 29 14:18 cku200b02.solaris8g-sparc <-- gcc
  36.  
  37. (and similarly on x86).  Many of the feature-deselection options you added
  38. to your makefile target are implied by NOLOCAL or NOCSETS.  If you just do:
  39.  
  40.   make solaris26x "KFLAGS -DNOLOCAL -DNOCSETS -DNODEBUG"
  41.  
  42. it should build OK and give you an executable less than half the size of
  43. the full-featured one.  Any reductions beyond that will be just small
  44. change (law of diminishing returns).  Testing this on Linux:
  45.  
  46.   -rwxrwx---    1 fdc  1984671 Jul  2 09:40 kermit  <-- Full build
  47.   -rwxrwx---    1 fdc   935148 Jul  2 09:37 wermit  <-- With above KFLAGS
  48.  
  49. (it built with no errors).
  50.  
  51. By the way, for reference, here are the effects of some of the feature
  52. deselection switches used in isolation on Linux/i386, RH7.0, gcc 2.96:
  53.  
  54. Build           Size    Savings    Description
  55.  Full        1984671          -
  56.  NOSPL       1667990     316681    No Script Programming Language
  57.  NOCSETS     1607616     377055    No Character-set conversions
  58.  NONET       1710743     273928    No networks
  59.  NOFTP       1843513     141158    No FTP client
  60.  NODEBUG     1769572     215099    No debugging
  61.  NOHELP      1699954     284717    No HELP
  62.  NOLOCAL     1445894     538777    Remote only - no making connections
  63.  NODIAL      1844366     140305    No DIAL command or modem database
  64.  NOXFER      1452623     532048    No file transfer
  65.  NOICP        479462    1505209    No Interactive Command Parser
  66.  
  67. Again, not all combinations of these switches have been tested or are
  68. guaranteed to work.  But I'll look at your report in more detail before
  69. the final 8.0 release.
  70.  
  71. As for the link errors, don't bother removing -lsocket -lnsl -lm -lresolv
  72. from the LIBS clause; they're dynamic libraries and are not loaded if they
  73. are not used.  They don't add anything to the executable.  (And when I
  74. tried building on Linux the above KFLAGS and the sockets libraries removed
  75. from the LIBS clause, I got no errors at all, so maybe you had some old
  76. objects laying around after all.)
  77.  
  78. - Frank
  79.